package edu.vt.sdm.tcga.filenavigator.model;

import java.io.File;

import org.eclipse.core.runtime.PlatformObject;

public class NavigatorRoot extends PlatformObject{

	private final String OSNAME = System.getProperty("os.name");
	private final boolean isWindows = OSNAME.indexOf("Windows") != -1;
	private final boolean isMac = OSNAME.indexOf("Mac") != -1;
	
	public FileBean[] getParentBeans(){
		File f;
		
		if(isWindows == true){
			f = new File("C:/");
		}
		else if(isMac == true){
			f = new File("/Users/");
		}
		else{
			f = new File("/");
		}
		
		FileBean top = new FileBean(f);
		return top.getChildren();
	}}
